
# Make sure you already have cmake 2.6 installed. For cross compiling.
cmake_minimum_required(VERSION 2.6)

set(TOOLCHAIN_PATH /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi)
include(CMakeForceCompiler)
cmake_force_c_compiler(${TOOLCHAIN_PATH}/bin/arm-linux-gcc GNU)
cmake_force_cxx_compiler(${TOOLCHAIN_PATH}/bin/arm-linux-g++ GNU)

Project(comiccoquer CXX C)

set(QTLIBS QtCore QtGui QtSql QtDBus)
set(ONYXLIBS onyx_sys onyx_screen onyx_ui onyx_wifi onyx_wpa)

include_directories(/opt/onyx/naboo/include)
include_directories(/opt/onyx/naboo/include/qt4_arm)
include_directories(/usr/zlib-arm/include)

link_directories(/usr/zlib-arm/lib)
link_directories(/opt/onyx/naboo/lib)

# Output directories.
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/libs)
SET(TEST_OUTPUT_PATH ${PROJECT_BINARY_DIR}/unittests)
SET(QT_PLUGINS_OUTPUT_PATH ${PROJECT_BINARY_DIR}/plugins)

# All sub directories.
ADD_SUBDIRECTORY(src)


